public class Cat{
    String name;
    int age;
    float weight;
    public void eat(){
     System.out.println(name + "正在吃饭");
    }
    public void sleep() {
    System.out.println(name + "正在睡觉");
    }
    void mew(){
        System.out.println(name + "喵喵喵~~~");
    }

    public static void main(String[] args) {
       Cat cat = new Cat();
       cat.name = "小八";
       cat.mew();
       cat.eat();
       cat.sleep();
    }
}